@echo off
REM 清理Maven仓库中下载失败的内容
chcp 65001
set REPOSITORY_PATH=D:\apache\apache-maven-3.6.3\repository
for /f "delims=" %%i in ('dir /b /s "%REPOSITORY_PATH%\*lastUpdated*"') do (
    del /s /q %%i
)
for /f "delims=" %%a in ('dir /s /b /ad "%REPOSITORY_PATH%"') do (rd /q "%%a" 2>nul && echo 已删除 "%%a")
pause
